package com.gitee.starblues.example.mp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gitee.starblues.bootstrap.annotation.ResolveClassLoader;
import com.gitee.starblues.example.mp.entity.MpPluginUser;
import com.gitee.starblues.example.mp.mapper.MpPluginUserMapper;
import com.gitee.starblues.example.mp.service.MpPluginUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 插件1-用户表 服务实现类
 * </p>
 *
 * @author starBlues
 * @since 2021-05-21
 */
@Service
public class MpPluginUserServiceImpl extends ServiceImpl<MpPluginUserMapper, MpPluginUser> implements MpPluginUserService {

    @ResolveClassLoader
    @Override
    public List<MpPluginUser> testWrapper() {
        LambdaQueryWrapper<MpPluginUser> wrapper = Wrappers.lambdaQuery(MpPluginUser.class)
                .eq(MpPluginUser::getDeleted, 0);
        return list(wrapper);
    }
}
